home *** CD-ROM | disk | FTP | other *** search
- Path: news.mtholyoke.edu!ssubrama
- From: ssubrama@mtholyoke.edu (Sowmya Subramanian)
- Newsgroups: comp.lang.c++
- Subject: Help needed
- Date: 31 Mar 1996 03:57:04 GMT
- Organization: Mount Holyoke College
- Message-ID: <4jkvqg$k3m@news1.mtholyoke.edu>
- NNTP-Posting-Host: mhc.mtholyoke.edu
- X-Newsreader: TIN [version 1.2 PL0]
-
- Any help regarding the following issue would be greatly appreciated:
-
- I am coding in C++ and using MSVC 2.0. I have several objects (for
- instance, patient objects) stored in a file called patient.dat. Now, I
- need to be able to delete one of these objects from the file. Is there
- any library function that will delete a specified number of bytes from a
- file, and also handle the space that has been freed? Or, do I have to
- explicitly use some mechanism (such as use pointers) that will go and
- delete an object, and then reallocated that free space or do some kind of
- compaction? I hope my question is clear... if not, please ask me.
-
- It would be great if any of you can suggest some solutions for the above
- problem - please reply to me (ssubrama@mhc.mtholyoke.edu). Thanks a lot
- in advance!
-
- --
- Sowmya
-